package com.zl.customer.service.impl;

import com.zl.customer.mapper.UserinfoMapper;
import com.zl.customer.pojo.Userinfo;
import com.zl.customer.service.UserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Userinfo的业务类
 * @ClassName: UserinfoServiceImpl
 * @author: suke
 * @since: 2021/7/9 11:46
 */
@Service("userinfoService")
public class UserinfoServiceImpl implements UserinfoService {
    @Autowired
    private UserinfoMapper userinfoMapper;

    @Override
    public Userinfo login(String name, String password) {
        //业务判断: 数据校验, 权限验证, 安全验证....
        return  userinfoMapper.queryByNameAndPass(name,password);
    }
}
